<%
var disabled = "";
if( isTrue(isReadonly!) ||isTrue(view!)){
	disabled =   "readonly "  ;
}
var lay_text = "是|否";
if(!isEmpty(options!)){
	lay_text =   options  ;
}

var checked = "";

//新增的情况
if(isEmpty(value!)){
	checked =   "checked"  ;
}else{if(isTrue(value!) ){
	checked =   "checked"  ;
} 
}


%>
<input type="checkbox"  id="${id!}" name="${name}" lay-skin="switch" lay-text="${lay_text}" ${disabled} ${checked}>
